home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 2c 63 6f 6d 70 2e 6c |.lang.c+|+,comp.l|
|00000020| 61 6e 67 2e 63 2c 63 6f | 6d 70 2e 6f 73 2e 6d 73 |ang.c,co|mp.os.ms|
|00000030| 64 6f 73 2e 70 72 6f 67 | 72 61 6d 6d 65 72 0a 50 |dos.prog|rammer.P|
|00000040| 61 74 68 3a 20 6e 65 77 | 73 33 2e 6e 6f 63 2e 6e |ath: new|s3.noc.n|
|00000050| 65 74 63 6f 6d 2e 6e 65 | 74 21 7a 64 63 21 7a 69 |etcom.ne|t!zdc!zi|
|00000060| 70 70 6f 21 75 73 65 6e | 65 74 0a 46 72 6f 6d 3a |ppo!usen|et.From:|
|00000070| 20 58 75 20 59 69 66 65 | 6e 67 20 3c 6a 61 66 64 | Xu Yife|ng <jafd|
|00000080| 40 70 75 62 6c 69 63 2e | 73 74 61 2e 6e 65 74 2e |@public.|sta.net.|
|00000090| 63 6e 3e 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |cn>.Subj|ect: Re:|
|000000a0| 20 6d 61 6c 6c 6f 63 2c | 20 6e 65 77 20 69 6e 20 | malloc,| new in |
|000000b0| 61 20 49 53 52 2c 20 73 | 61 66 65 20 6f 72 20 6e |a ISR, s|afe or n|
|000000c0| 6f 74 20 3f 0a 43 6f 6e | 74 65 6e 74 2d 54 79 70 |ot ?.Con|tent-Typ|
|000000d0| 65 3a 20 74 65 78 74 2f | 70 6c 61 69 6e 3b 20 63 |e: text/|plain; c|
|000000e0| 68 61 72 73 65 74 3d 75 | 73 2d 61 73 63 69 69 0a |harset=u|s-ascii.|
|000000f0| 54 6f 3a 20 22 51 49 41 | 4e 20 2e 20 5a 48 4f 4e |To: "QIA|N . ZHON|
|00000100| 47 22 20 3c 71 5f 7a 68 | 6f 6e 67 40 68 61 6d 6c |G" <q_zh|ong@haml|
|00000110| 65 74 2e 75 6e 63 67 2e | 65 64 75 3e 0a 53 65 6e |et.uncg.|edu>.Sen|
|00000120| 64 65 72 3a 20 75 73 65 | 6e 65 74 40 6e 65 77 73 |der: use|net@news|
|00000130| 2e 7a 69 70 70 6f 2e 63 | 6f 6d 0a 43 6f 6e 74 65 |.zippo.c|om.Conte|
|00000140| 6e 74 2d 54 72 61 6e 73 | 66 65 72 2d 45 6e 63 6f |nt-Trans|fer-Enco|
|00000150| 64 69 6e 67 3a 20 37 62 | 69 74 0a 4e 6e 74 70 2d |ding: 7b|it.Nntp-|
|00000160| 50 6f 73 74 69 6e 67 2d | 48 6f 73 74 3a 20 74 73 |Posting-|Host: ts|
|00000170| 31 2d 31 35 2e 73 74 61 | 2e 6e 65 74 2e 63 6e 0a |1-15.sta|.net.cn.|
|00000180| 4f 72 67 61 6e 69 7a 61 | 74 69 6f 6e 3a 20 5a 69 |Organiza|tion: Zi|
|00000190| 70 70 6f 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |ppo.Mess|age-ID: |
|000001a0| 3c 33 31 31 36 37 41 32 | 41 2e 36 34 32 33 40 70 |<31167A2|A.6423@p|
|000001b0| 75 62 6c 69 63 2e 73 74 | 61 2e 6e 65 74 2e 63 6e |ublic.st|a.net.cn|
|000001c0| 3e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 50 |>.Refere|nces: <P|
|000001d0| 69 6e 65 2e 53 4f 4c 2e | 33 2e 39 31 2e 39 36 30 |ine.SOL.|3.91.960|
|000001e0| 32 30 32 30 39 35 37 35 | 34 2e 32 30 37 31 36 47 |20209575|4.20716G|
|000001f0| 2d 32 30 30 30 30 30 40 | 68 61 6d 6c 65 74 2e 75 |-200000@|hamlet.u|
|00000200| 6e 63 67 2e 65 64 75 3e | 0a 58 2d 4d 61 69 6c 65 |ncg.edu>|.X-Maile|
|00000210| 72 3a 20 4d 6f 7a 69 6c | 6c 61 20 32 2e 30 62 36 |r: Mozil|la 2.0b6|
|00000220| 62 20 28 57 69 6e 39 35 | 3b 20 49 3b 20 31 36 62 |b (Win95|; I; 16b|
|00000230| 69 74 29 0a 4d 69 6d 65 | 2d 56 65 72 73 69 6f 6e |it).Mime|-Version|
|00000240| 3a 20 31 2e 30 0a 44 61 | 74 65 3a 20 4d 6f 6e 2c |: 1.0.Da|te: Mon,|
|00000250| 20 35 20 46 65 62 20 31 | 39 39 36 20 32 31 3a 34 | 5 Feb 1|996 21:4|
|00000260| 34 3a 31 30 20 47 4d 54 | 0a 0a 51 49 41 4e 20 2e |4:10 GMT|..QIAN .|
|00000270| 20 5a 48 4f 4e 47 20 77 | 72 6f 74 65 3a 0a 3e 20 | ZHONG w|rote:.> |
|00000280| 48 69 2c 20 66 6f 6c 6b | 73 3a 0a 3e 20 0a 3e 20 |Hi, folk|s:.> .> |
|00000290| 49 20 61 6d 20 77 72 69 | 74 69 6e 67 20 61 20 74 |I am wri|ting a t|
|000002a0| 69 6d 65 72 20 49 53 52 | 2c 20 77 68 69 63 68 20 |imer ISR|, which |
|000002b0| 77 69 6c 6c 20 62 65 20 | 63 61 6c 6c 65 64 20 62 |will be |called b|
|000002c0| 79 20 61 20 66 61 73 74 | 65 72 20 63 6c 6f 63 6b |y a fast|er clock|
|000002d0| 2c 20 61 74 0a 3e 20 65 | 76 65 72 79 20 35 20 6d |, at.> e|very 5 m|
|000002e0| 73 2e 20 41 6e 79 20 20 | 6f 6e 65 20 63 61 6e 20 |s. Any |one can |
|000002f0| 68 65 6c 70 20 6d 65 20 | 63 6c 65 61 72 20 73 6f |help me |clear so|
|00000300| 6d 65 20 71 75 65 73 74 | 69 6f 6e 20 3f 0a 3e 20 |me quest|ion ?.> |
|00000310| 0a 3e 20 31 2e 20 49 6e | 20 61 20 49 53 52 20 66 |.> 1. In| a ISR f|
|00000320| 6f 72 20 44 4f 53 2c 20 | 69 74 20 73 68 6f 75 6c |or DOS, |it shoul|
|00000330| 64 20 6e 6f 74 20 63 61 | 6c 6c 20 44 4f 53 20 66 |d not ca|ll DOS f|
|00000340| 75 6e 63 74 69 6f 6e 2c | 20 62 65 63 61 75 73 65 |unction,| because|
|00000350| 20 6d 6f 73 74 20 44 4f | 53 0a 3e 20 66 75 6e 63 | most DO|S.> func|
|00000360| 74 69 6f 6e 20 69 73 20 | 6e 6f 74 20 66 6f 72 20 |tion is |not for |
|00000370| 72 65 2d 65 6e 74 72 79 | 2c 20 61 6d 20 49 20 72 |re-entry|, am I r|
|00000380| 69 67 68 74 20 6f 72 20 | 77 72 6f 6e 67 20 3f 0a |ight or |wrong ?.|
|00000390| 0a 69 6e 20 74 69 6d 65 | 72 20 49 53 52 2c 20 69 |.in time|r ISR, i|
|000003a0| 66 20 49 4e 44 4f 53 20 | 66 6c 61 67 20 69 73 20 |f INDOS |flag is |
|000003b0| 6e 6f 74 20 73 65 74 2c | 20 44 4f 53 20 66 75 6e |not set,| DOS fun|
|000003c0| 63 74 69 6f 6e 20 73 74 | 69 6c 6c 20 63 61 6e 20 |ction st|ill can |
|000003d0| 62 65 20 63 61 6c 6c 65 | 64 2e 0a 0a 3e 20 32 2e |be calle|d...> 2.|
|000003e0| 20 53 6f 6d 65 20 70 65 | 6f 70 6c 65 20 73 61 69 | Some pe|ople sai|
|000003f0| 64 2c 20 6d 61 6c 6c 6f | 63 28 29 20 66 61 6d 69 |d, mallo|c() fami|
|00000400| 6c 79 20 77 69 6c 6c 20 | 63 61 6c 6c 20 44 4f 53 |ly will |call DOS|
|00000410| 20 66 75 6e 63 74 69 6f | 6e 2c 20 73 6f 20 49 20 | functio|n, so I |
|00000420| 73 68 6f 75 6c 64 20 6e | 6f 74 0a 3e 20 75 73 65 |should n|ot.> use|
|00000430| 20 6d 61 6c 6c 6f 63 28 | 29 20 69 6e 20 49 53 52 | malloc(|) in ISR|
|00000440| 2c 20 72 69 67 68 74 20 | 6f 72 20 77 72 6f 6e 67 |, right |or wrong|
|00000450| 20 3f 0a 0a 55 6e 64 65 | 72 20 44 4f 53 2c 20 6d | ?..Unde|r DOS, m|
|00000460| 61 6c 6c 6f 63 20 77 69 | 6c 6c 20 63 61 6c 6c 20 |alloc wi|ll call |
|00000470| 44 4f 53 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |DOS func|tion to |
|00000480| 67 72 6f 77 20 74 68 65 | 20 68 65 61 70 20 69 66 |grow the| heap if|
|00000490| 20 74 68 65 20 66 72 65 | 65 0a 68 65 61 70 20 73 | the fre|e.heap s|
|000004a0| 70 61 63 65 20 69 73 6e | 27 74 20 65 6e 6f 75 67 |pace isn|'t enoug|
|000004b0| 68 2c 20 75 6e 64 65 72 | 20 57 69 6e 64 6f 77 73 |h, under| Windows|
|000004c0| 2c 20 6d 61 6c 6c 6f 63 | 20 77 69 6c 6c 20 63 61 |, malloc| will ca|
|000004d0| 6c 6c 20 20 77 69 6e 64 | 6f 77 73 20 74 6f 0a 67 |ll wind|ows to.g|
|000004e0| 72 6f 77 20 68 65 61 70 | 2e 20 49 6e 20 6d 61 6e |row heap|. In man|
|000004f0| 79 20 69 6d 70 6c 65 6d | 65 6e 74 69 6f 6e 73 2c |y implem|entions,|
|00000500| 20 69 74 20 69 73 20 74 | 72 75 65 2e 0a 0a 3e 20 | it is t|rue...> |
|00000510| 33 2e 20 48 6f 77 20 61 | 62 6f 75 74 20 6e 65 77 |3. How a|bout new|
|00000520| 20 61 6e 64 20 64 65 6c | 65 74 65 20 6f 70 65 72 | and del|ete oper|
|00000530| 61 74 6f 72 20 3f 20 64 | 6f 20 74 68 65 79 20 75 |ator ? d|o they u|
|00000540| 73 65 20 61 6e 79 20 44 | 4f 53 20 66 75 6e 63 74 |se any D|OS funct|
|00000550| 69 6f 6e 20 66 6f 72 20 | 61 0a 3e 20 44 4f 53 20 |ion for |a.> DOS |
|00000560| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 3f 20 63 61 |applicat|ion ? ca|
|00000570| 6e 20 49 20 75 73 65 20 | 6e 65 77 20 6f 72 20 64 |n I use |new or d|
|00000580| 65 6c 65 74 65 20 69 6e | 20 61 20 49 53 52 20 3f |elete in| a ISR ?|
|00000590| 20 41 73 20 49 20 75 6e | 64 65 72 73 74 61 6e 64 | As I un|derstand|
|000005a0| 2c 0a 3e 20 62 6f 74 68 | 20 6e 65 77 20 61 6e 64 |,.> both| new and|
|000005b0| 20 6d 61 6c 6c 6f 63 20 | 66 61 6d 69 6c 79 20 73 | malloc |family s|
|000005c0| 68 6f 75 6c 64 20 62 65 | 20 70 6f 72 74 61 62 6c |hould be| portabl|
|000005d0| 65 20 61 6e 64 20 73 79 | 73 74 65 6d 20 69 6e 64 |e and sy|stem ind|
|000005e0| 65 70 65 6e 64 65 6e 74 | 2c 20 62 75 74 0a 3e 20 |ependent|, but.> |
|000005f0| 64 6f 20 74 68 65 79 20 | 61 63 74 75 61 6c 6c 79 |do they |actually|
|00000600| 20 63 61 6c 6c 20 73 6f | 6d 65 20 44 4f 53 20 6f | call so|me DOS o|
|00000610| 72 20 57 69 6e 64 6f 77 | 73 20 41 50 49 20 66 75 |r Window|s API fu|
|00000620| 6e 63 74 69 6f 6e 73 20 | 3f 0a 3e 20 0a 0a 20 20 |nctions |?.> .. |
|00000630| 69 6e 20 73 6f 6d 65 20 | 69 6d 70 6c 65 6d 65 6e |in some |implemen|
|00000640| 74 69 6f 6e 73 2c 20 22 | 6e 65 77 22 20 6d 61 79 |tions, "|new" may|
|00000650| 62 65 20 63 61 6c 6c 20 | 22 6d 61 6c 6c 6f 63 22 |be call |"malloc"|
|00000660| 2c 20 61 6e 64 20 22 64 | 65 6c 65 74 65 22 20 77 |, and "d|elete" w|
|00000670| 69 6c 6c 20 0a 63 61 6c | 6c 20 22 66 72 65 65 22 |ill .cal|l "free"|
|00000680| 2c 20 61 73 20 49 20 73 | 61 69 64 2c 20 44 4f 53 |, as I s|aid, DOS|
|00000690| 20 66 75 6e 63 74 69 6f | 6e 73 20 77 69 6c 6c 20 | functio|ns will |
|000006a0| 62 65 20 63 61 6c 6c 65 | 64 20 75 6e 64 65 72 20 |be calle|d under |
|000006b0| 44 4f 53 2c 20 61 6e 64 | 20 0a 57 69 6e 64 6f 77 |DOS, and| .Window|
|000006c0| 73 20 41 50 49 20 77 69 | 6c 6c 20 62 65 20 63 61 |s API wi|ll be ca|
|000006d0| 6c 6c 65 64 20 75 6e 64 | 65 72 20 57 69 6e 64 6f |lled und|er Windo|
|000006e0| 77 73 2e 0a 0a 20 20 4e | 6f 74 65 20 74 68 61 74 |ws... N|ote that|
|000006f0| 20 6d 61 6e 79 20 43 20 | 72 75 6e 74 69 6d 65 20 | many C |runtime |
|00000700| 6c 69 62 72 61 72 79 20 | 66 75 6e 63 74 69 6f 6e |library |function|
|00000710| 73 20 61 72 65 20 6e 6f | 74 20 72 65 2d 65 6e 74 |s are no|t re-ent|
|00000720| 65 72 61 62 6c 65 2c 20 | 73 6f 20 0a 69 74 20 69 |erable, |so .it i|
|00000730| 73 20 64 61 6e 67 65 72 | 6f 75 73 20 74 6f 20 63 |s danger|ous to c|
|00000740| 61 6c 6c 20 74 68 65 6d | 20 69 6e 20 49 53 52 2c |all them| in ISR,|
|00000750| 20 79 6f 75 20 63 61 6e | 20 64 69 73 61 62 6c 65 | you can| disable|
|00000760| 20 72 65 2d 65 6e 74 65 | 72 61 62 6c 65 20 69 6e | re-ente|rable in|
|00000770| 0a 79 6f 75 72 20 49 53 | 52 20 6f 72 20 63 68 65 |.your IS|R or che|
|00000780| 63 6b 20 69 66 20 74 68 | 65 20 66 75 6e 63 74 69 |ck if th|e functi|
|00000790| 6f 6e 73 20 79 6f 75 20 | 61 72 65 20 75 73 69 6e |ons you |are usin|
|000007a0| 67 20 61 72 65 20 72 65 | 2d 65 6e 74 65 72 61 62 |g are re|-enterab|
|000007b0| 6c 65 2e 0a 20 0a 3e 20 | 54 68 61 6e 6b 73 2c 20 |le.. .> |Thanks, |
|000007c0| 70 6c 65 61 73 65 20 73 | 65 6e 64 20 6d 65 20 65 |please s|end me e|
|000007d0| 6d 61 69 6c 2e 0a 3e 20 | 0a 3e 20 43 68 65 65 72 |mail..> |.> Cheer|
|000007e0| 0a 3e 20 0a 3e 20 51 69 | 61 6e 0a 0a 52 65 67 61 |.> .> Qi|an..Rega|
|000007f0| 72 64 73 2c 0a 58 75 20 | 59 69 66 65 6e 67 0a |rds,.Xu |Yifeng. |
+--------+-------------------------+-------------------------+--------+--------+